package com.exam.service;

import com.exam.entity.ClassScore;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface ClassScoreService {

    // 分页查询班级成绩
    Page<ClassScore> getScoresByClassId(Integer classId, Pageable pageable);

    // 按课程名分页查询班级成绩
    Page<ClassScore> getScoresByClassIdAndCourse(Integer classId, String courseName, Pageable pageable);

    // 保存或更新班级成绩
    ClassScore saveOrUpdateClassScore(ClassScore classScore);

    // 删除班级成绩
    void deleteClassScoreById(Integer classScoreId);
}